<template>
  <div class="waic">
    <!-- <div class="box">
      <header class="tou">头部</header>
      <main class="zhong">中间</main>
    </div> -->
    <router-view></router-view>
    <!-- <footer class="di">
      <van-tabbar v-model="active" router>
        <van-tabbar-item to="/" icon="home-o">首页</van-tabbar-item>
        <van-tabbar-item to="/kind" icon="qr">分类</van-tabbar-item>
        <van-tabbar-item to="/cart" icon="cart-o">购物车</van-tabbar-item>
        <van-tabbar-item to="/user" icon="manager-o">我的</van-tabbar-item>
      </van-tabbar>
    </footer> -->
    <router-view name="footer"></router-view>
  </div>
</template>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
  list-style: none;
}
html,
body,
#app,
.waic {
  width: 100%;
  height: 100%;
}
.waic {
  display: flex;
  flex-direction: column;
  .box {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    .tou {
      height: 50px;
    }
    .zhong {
      flex: 1;
      overflow: auto;
    }
  }
  .di {
    height: 50px;
  }
}
</style>
